package com.ecut.drug_bid.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class TenderCreateRequest {
    @NotBlank(message = "招标项目编号不能为空")
    private String tenderCode;

    @NotBlank(message = "药品名称不能为空")
    private String drugName;

    @NotBlank(message = "制药单位不能为空")
    private String manufacturer;

    private String packageReq;

    @NotNull(message = "总量不能为空")
    @Positive(message = "总量必须大于0")
    private Integer totalAmount;

    @NotNull(message = "招标截止日期不能为空")
    private LocalDateTime deadline;

    @NotNull(message = "投标保证金不能为空")
    @Positive(message = "投标保证金必须大于0")
    private BigDecimal deposit;
}